package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.Category;
import org.csu.mypetstore.api.entity.Product;
import org.csu.mypetstore.api.vo.ItemVo;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface CatalogService {
    CommonResponse<List<Category>> getCategoryList();

    CommonResponse<Category> getCategory(@PathVariable("id") String categoryId);

    CommonResponse<List<Product>> getProductListByCategoryId(@PathVariable("id")String categoryId);
    CommonResponse<Product> getProductById(@PathVariable("id")String productId) ;

    CommonResponse<List<ItemVo>> getItemsByProductId(@PathVariable("id")String productId);







}
